revdeck 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/CONTRIBUTING.md +11 -0
- package/README.md +14 -5
- package/README.ru.md +15 -6
- package/dist/cli.js +25 -15
- package/dist/cli.js.map +2 -2
- package/dist/daemon.js +51 -37
- package/dist/daemon.js.map +3 -3
- package/dist/mcp.js +14 -13
- package/dist/mcp.js.map +2 -2
- package/dist/ui/assets/index-C2nKwWMa.js +10 -0
- package/dist/ui/assets/index-CTegHeh4.css +1 -0
- package/dist/ui/index.html +2 -2
- package/docs/integrations.md +11 -6
- package/docs/protocol.md +1 -0
- package/docs/ru/integrations.md +11 -6
- package/docs/ru/protocol.md +1 -0
- package/package.json +1 -1
- package/skills/revdeck/en/SKILL.md +7 -0
- package/skills/revdeck/ru/SKILL.md +7 -0
- package/dist/ui/assets/index-B2o_eogg.js +0 -10
- package/dist/ui/assets/index-C4ko2Kho.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,40 @@ All notable changes to this project are documented here. The format is based on
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.4.3] - 2026-11-12
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Text editing is no longer reset by background refreshes: SSE/polling updates are deferred while a
|
|
14
|
+
text field has focus, thread draft responses do not overwrite newer input, and the agent reply on a
|
|
15
|
+
line comment is now editable.
|
|
16
|
+
|
|
17
|
+
## [0.4.2] - 2026-11-12
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Remove a review from the local sidebar (the MR/PR on the platform is untouched).
|
|
22
|
+
- Copy a finding's file path from the card; long paths truncate with an ellipsis.
|
|
23
|
+
- A loading bar for review switches and a request guard so a slow older response cannot overwrite a
|
|
24
|
+
newer review.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Diff rows keep their colored background across the full horizontal scroll, including long code lines.
|
|
29
|
+
- Agent edits (summary, findings, replies, notes) reach the open UI immediately via SSE, with a 10-second
|
|
30
|
+
polling fallback when SSE is unavailable.
|
|
31
|
+
- Devcontainer bridge permissions: `run`/`state` are `0755`, the bridge socket `0666`, `daemon.json`
|
|
32
|
+
`0644`, while the private parent stays `0700`. The loopback HTTP server accepts
|
|
33
|
+
`Host: host.docker.internal`, so macOS Docker Desktop works without `--host 0.0.0.0`. Missing
|
|
34
|
+
`daemon.json` permissions and HTTP `Host` errors now produce distinct hints.
|
|
35
|
+
- `revdeck devcontainer --write` warns when it cannot find a repository MCP config for the
|
|
36
|
+
user-level one.
|
|
37
|
+
|
|
38
|
+
### Documentation
|
|
39
|
+
|
|
40
|
+
- Added an explicit project rule: documentation is part of every change (`AGENTS.md`, `CONTRIBUTING.md`).
|
|
41
|
+
- Skills now ask for a short chat answer and put details in the summary/findings.
|
|
42
|
+
|
|
9
43
|
## [0.4.1] - 2026-11-12
|
|
10
44
|
|
|
11
45
|
### Fixed
|
package/CONTRIBUTING.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
Thanks for taking the time to contribute. revdeck is a small, dependency-light project: a review
|
|
4
4
|
procedure, a local daemon, platform providers, an MCP server, a CLI and a Svelte UI.
|
|
5
5
|
|
|
6
|
+
## Documentation is part of the change
|
|
7
|
+
|
|
8
|
+
A behavior change is not complete until its documentation is updated in the same change:
|
|
9
|
+
|
|
10
|
+
- `README.md` and `README.ru.md` for user-facing commands and behavior;
|
|
11
|
+
- `docs/` and `docs/ru/` for architecture, configuration, protocol and integrations;
|
|
12
|
+
- `CHANGELOG.md` under `Unreleased` (or the release section);
|
|
13
|
+
- `revdeck --help` and MCP tool descriptions when arguments or capabilities change.
|
|
14
|
+
|
|
15
|
+
If a change is intentionally undocumented, say why in the pull request.
|
|
16
|
+
|
|
6
17
|
## Good first issues
|
|
7
18
|
|
|
8
19
|
- A new `Provider` (Bitbucket, Forgejo, Azure DevOps).
|
package/README.md
CHANGED
|
@@ -130,6 +130,10 @@ sidebar, `p` opens publishing, `?` opens the command palette. The sidebar choice
|
|
|
130
130
|
|
|
131
131
|
The UI shows the MR/PR description, supports deep links to threads, findings and diff lines (with
|
|
132
132
|
working browser Back/Forward), and keeps a per-review "viewed" state and file filter in the diff.
|
|
133
|
+
A review can be removed from the local sidebar with **×**; this never deletes the MR/PR on the platform.
|
|
134
|
+
A thin progress bar shows review loading, and finding paths can be copied from the card. While a text
|
|
135
|
+
field is focused, background updates are deferred so typing is never overwritten; the agent reply on a
|
|
136
|
+
line comment can also be edited.
|
|
133
137
|
|
|
134
138
|
## Attachments
|
|
135
139
|
|
|
@@ -176,11 +180,16 @@ rebuild the container. Inside the container revdeck never starts a local daemon,
|
|
|
176
180
|
never invoked there; if the host socket is missing it fails with a clear `DEVCONTAINER` error.
|
|
177
181
|
`revdeck doctor` is aware of this mode.
|
|
178
182
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
`
|
|
183
|
-
|
|
183
|
+
On macOS with Docker Desktop the host Unix socket is not proxied into the container. The client then
|
|
184
|
+
falls back to HTTP: `revdeck daemon restart` is enough, because the bridge `daemon.json` is readable by
|
|
185
|
+
the container user (the private parent stays `0700`) and the loopback server accepts
|
|
186
|
+
`Host: host.docker.internal`. On Linux, if the socket is not reachable, use
|
|
187
|
+
`revdeck daemon restart --host 0.0.0.0` (or `revdeck daemon install --host 0.0.0.0` for a service);
|
|
188
|
+
binding to `0.0.0.0` exposes the HTTP port to the network, so use it only on a trusted network.
|
|
189
|
+
|
|
190
|
+
`revdeck devcontainer --write` updates `.mcp.json` / `.cursor/mcp.json` inside the repository. A
|
|
191
|
+
user-level MCP configuration outside the repository must get the same `REVDECK_*` variables manually;
|
|
192
|
+
otherwise it can start a second daemon inside the container.
|
|
184
193
|
|
|
185
194
|
## MCP
|
|
186
195
|
|
package/README.ru.md
CHANGED
|
@@ -114,7 +114,11 @@ revdeck ui # ссылка на локальный интерфейс
|
|
|
114
114
|
запоминается в `localStorage`.
|
|
115
115
|
|
|
116
116
|
UI показывает описание MR/PR, поддерживает deep links на треды, замечания и строки diff (с рабочей
|
|
117
|
-
кнопкой «назад»), а в diff — фильтр файлов и отметку «просмотрено» для каждого ревью.
|
|
117
|
+
кнопкой «назад»), а в diff — фильтр файлов и отметку «просмотрено» для каждого ревью. Ревью можно убрать
|
|
118
|
+
из локального сайдбара кнопкой **×** (MR/PR на платформе не удаляется). Тонкая полоса показывает
|
|
119
|
+
загрузку, путь замечания можно скопировать из карточки. Пока текстовое поле в фокусе, фоновые
|
|
120
|
+
обновления откладываются и не затирают ввод; ответ агента в комментарии к строке тоже можно
|
|
121
|
+
редактировать.
|
|
118
122
|
|
|
119
123
|
## Вложения
|
|
120
124
|
|
|
@@ -162,11 +166,16 @@ revdeck devcontainer --write # добавить их в .devcontainer/devcontai
|
|
|
162
166
|
вызываются; если сокет хоста недоступен, команда падает с понятной ошибкой `DEVCONTAINER`.
|
|
163
167
|
`revdeck doctor` знает об этом режиме.
|
|
164
168
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
`
|
|
169
|
-
|
|
169
|
+
На macOS с Docker Desktop Unix-сокет хоста не пробрасывается в контейнер. Клиент переключается на
|
|
170
|
+
HTTP: достаточно `revdeck daemon restart`, потому что `daemon.json` моста читается пользователем
|
|
171
|
+
контейнера (приватный родительский каталог остаётся `0700`), а loopback-сервер принимает
|
|
172
|
+
`Host: host.docker.internal`. На Linux, если сокет недоступен, используйте
|
|
173
|
+
`revdeck daemon restart --host 0.0.0.0` (или `revdeck daemon install --host 0.0.0.0` для сервиса);
|
|
174
|
+
привязка к `0.0.0.0` открывает HTTP-порт в сеть — только для доверенной сети.
|
|
175
|
+
|
|
176
|
+
`revdeck devcontainer --write` обновляет `.mcp.json` / `.cursor/mcp.json` внутри репозитория.
|
|
177
|
+
Пользовательский MCP вне репозитория нужно вручную снабдить теми же `REVDECK_*`; иначе он может
|
|
178
|
+
поднять второй демон внутри контейнера.
|
|
170
179
|
|
|
171
180
|
## MCP
|
|
172
181
|
|
package/dist/cli.js
CHANGED
|
@@ -168,7 +168,7 @@ var VERSION;
|
|
|
168
168
|
var init_version = __esm({
|
|
169
169
|
"src/version.ts"() {
|
|
170
170
|
"use strict";
|
|
171
|
-
VERSION = "0.4.
|
|
171
|
+
VERSION = "0.4.3";
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
|
|
@@ -197,13 +197,16 @@ async function connectSocket(file = socketPath(), timeoutMs = 1500) {
|
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
async function
|
|
200
|
+
async function daemonInfoRead() {
|
|
201
201
|
try {
|
|
202
|
-
return JSON.parse(await readFile2(daemonInfoPath(), "utf8"));
|
|
203
|
-
} catch {
|
|
204
|
-
return null;
|
|
202
|
+
return { info: JSON.parse(await readFile2(daemonInfoPath(), "utf8")), error: "" };
|
|
203
|
+
} catch (error) {
|
|
204
|
+
return { info: null, error: error.message };
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
+
async function daemonInfo() {
|
|
208
|
+
return (await daemonInfoRead()).info;
|
|
209
|
+
}
|
|
207
210
|
function isDevContainer() {
|
|
208
211
|
return process.env.REVDECK_DEV_CONTAINER === "1";
|
|
209
212
|
}
|
|
@@ -218,10 +221,11 @@ function devcontainerHint() {
|
|
|
218
221
|
].join("; ");
|
|
219
222
|
}
|
|
220
223
|
async function devcontainerHttpClient() {
|
|
221
|
-
const info = await
|
|
222
|
-
if (!info
|
|
224
|
+
const { info, error } = await daemonInfoRead();
|
|
225
|
+
if (!info) return { client: null, error: `${daemonInfoPath()}: ${error}` };
|
|
226
|
+
if (!info.port || !info.token) return { client: null, error: `${daemonInfoPath()}: \u043D\u0435\u0442 port/token` };
|
|
223
227
|
const host = process.env.REVDECK_UI_HOST ?? "host.docker.internal";
|
|
224
|
-
return new HttpClient(`http://${host}:${info.port}`, info.token);
|
|
228
|
+
return { client: new HttpClient(`http://${host}:${info.port}`, info.token), error: "" };
|
|
225
229
|
}
|
|
226
230
|
async function ensureDaemon(options = {}) {
|
|
227
231
|
const url = process.env.REVDECK_URL;
|
|
@@ -235,19 +239,19 @@ async function ensureDaemon(options = {}) {
|
|
|
235
239
|
} catch (error) {
|
|
236
240
|
if (isDevContainer()) {
|
|
237
241
|
const http = await devcontainerHttpClient();
|
|
238
|
-
if (http) {
|
|
242
|
+
if (http.client) {
|
|
239
243
|
try {
|
|
240
|
-
await http.request("ping");
|
|
241
|
-
return { client: http, started: false };
|
|
244
|
+
await http.client.request("ping");
|
|
245
|
+
return { client: http.client, started: false };
|
|
242
246
|
} catch (httpError) {
|
|
243
247
|
throw new RpcError(
|
|
244
248
|
`devcontainer HTTP: ${httpError.message}`,
|
|
245
249
|
"DEVCONTAINER",
|
|
246
|
-
"\u043D\u0430 \u0445\u043E\u0441\u0442\u0435
|
|
250
|
+
"\u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435, \u0447\u0442\u043E \u0434\u0435\u043C\u043E\u043D \u043D\u0430 \u0445\u043E\u0441\u0442\u0435 \u0437\u0430\u043F\u0443\u0449\u0435\u043D; \u043D\u0430 macOS \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E revdeck daemon restart; \u043D\u0430 Linux \u043F\u0440\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E\u043C \u0441\u043E\u043A\u0435\u0442\u0435 \u2014 --host 0.0.0.0"
|
|
247
251
|
);
|
|
248
252
|
}
|
|
249
253
|
}
|
|
250
|
-
throw new RpcError(`devcontainer: ${devcontainerHint()}`, "DEVCONTAINER", "
|
|
254
|
+
throw new RpcError(`devcontainer: ${http.error || devcontainerHint()}`, "DEVCONTAINER", "\u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u0440\u0430\u0432\u0430 \u043D\u0430 devcontainer/state/daemon.json \u0438 mounts");
|
|
251
255
|
}
|
|
252
256
|
if (options.autoStart === false) throw error;
|
|
253
257
|
}
|
|
@@ -2219,16 +2223,20 @@ async function runDevcontainer(rootInput, options) {
|
|
|
2219
2223
|
}
|
|
2220
2224
|
await writeFile2(file, output);
|
|
2221
2225
|
writers.out(`\u2714 ${path7.relative(root, file)}`);
|
|
2222
|
-
await mergeMcpEnv(root, patch.containerEnv);
|
|
2226
|
+
const mcpFiles = await mergeMcpEnv(root, patch.containerEnv);
|
|
2227
|
+
if (!mcpFiles) {
|
|
2228
|
+
writers.out(tr(" MCP-\u043A\u043E\u043D\u0444\u0438\u0433 \u0432 \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u0438 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0433\u043E MCP \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 REVDECK_* \u0432\u0440\u0443\u0447\u043D\u0443\u044E.", " No MCP config in the repository: add the REVDECK_* variables to a user-level MCP manually."));
|
|
2229
|
+
}
|
|
2223
2230
|
if (existed) writers.out(tr(" \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B.", " comments were preserved."));
|
|
2224
2231
|
writers.out("");
|
|
2225
2232
|
writers.out(tr("\u0414\u0430\u043B\u044C\u0448\u0435:", "Next:"));
|
|
2226
2233
|
writers.out(tr(" 1. \u041D\u0430 \u0445\u043E\u0441\u0442\u0435: revdeck daemon restart \u2014 \u043E\u043D \u0441\u043E\u0437\u0434\u0430\u0441\u0442 \u0441\u043E\u043A\u0435\u0442 \u043C\u043E\u0441\u0442\u0430.", " 1. On the host: revdeck daemon restart \u2014 it creates the bridge socket."));
|
|
2227
2234
|
writers.out(tr(" 2. \u041F\u0435\u0440\u0435\u0441\u043E\u0431\u0435\u0440\u0438\u0442\u0435/\u043F\u0435\u0440\u0435\u043E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 devcontainer.", " 2. Rebuild/reopen the devcontainer."));
|
|
2228
2235
|
writers.out(tr(" 3. \u0412 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0435: revdeck doctor \u2014 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043A\u0430\u0442\u044C glab/gh \u0432\u043D\u0443\u0442\u0440\u0438.", " 3. In the container: revdeck doctor \u2014 it will not look for glab/gh inside."));
|
|
2229
|
-
writers.out(tr("
|
|
2236
|
+
writers.out(tr(" macOS/Docker Desktop: \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E revdeck daemon restart; Linux \u043F\u0440\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E\u043C \u0441\u043E\u043A\u0435\u0442\u0435: revdeck daemon restart --host 0.0.0.0.", " macOS/Docker Desktop: revdeck daemon restart is enough; on Linux with an unreachable socket: revdeck daemon restart --host 0.0.0.0."));
|
|
2230
2237
|
}
|
|
2231
2238
|
async function mergeMcpEnv(root, env) {
|
|
2239
|
+
let changed = 0;
|
|
2232
2240
|
for (const relative of [".mcp.json", ".cursor/mcp.json"]) {
|
|
2233
2241
|
const file = path7.join(root, relative);
|
|
2234
2242
|
if (!existsSync6(file)) continue;
|
|
@@ -2240,11 +2248,13 @@ async function mergeMcpEnv(root, env) {
|
|
|
2240
2248
|
server2.env = { ...isRecord(server2.env) ? server2.env : {}, ...env };
|
|
2241
2249
|
await writeFile2(file, `${JSON.stringify(data, null, 2)}
|
|
2242
2250
|
`);
|
|
2251
|
+
changed += 1;
|
|
2243
2252
|
writers.out(`\u2714 MCP env: ${relative}`);
|
|
2244
2253
|
} catch (error) {
|
|
2245
2254
|
writers.err(`! ${relative}: ${tr("\u043D\u0435 JSON \u2014 \u043D\u0435 \u0442\u0440\u043E\u0433\u0430\u044E", "not JSON \u2014 leaving it untouched")} (${error.message})`);
|
|
2246
2255
|
}
|
|
2247
2256
|
}
|
|
2257
|
+
return changed;
|
|
2248
2258
|
}
|
|
2249
2259
|
|
|
2250
2260
|
// src/cli/eject.ts
|